#pragma once
#include <string>
#include <iostream>
#include <iomanip>

using namespace std;

class car
{
private:
	string brand;
	int year;
	double price;
public:
	car(void);
	car(string brand, int year, double price);

	~car(void);

	void readFromConsole();
	void writeToConsole();

	void setBrand(string brand) { this->brand = brand; }
	void setYear(int year) { this->year = year; }
	void setPrice(double price) { this->price = price; }
	
	string getBrand() { return brand; }	
	int getYear() { return year; }	
	double getPrice() { return price; }
};

